<?php
if(@$dt)
	echo '
	<div id="popupContact">
		<div style="width:955px;height:30px; float:right; text-align:right; position:absolute; z-index:1300;">
			<a href="'.$lang.'/'.$row_menu_one['url'].'"><img src="images/close.png" alt="sản phẩm" /></a>
		</div>
		<div style="clear:both; height:15px"></div>
		<div style="clear:both; height:15px; background-color:#FFF"></div>
		
		<div id="content_popup">
			<div class="img"><img src="'.url_product_image.$row_detail['url_hinh'].'" alt="'.$row_detail['name'].'" /></div>
			<h1>'.$row_detail['name'].'</h1>
			<div id="content">'.$row_detail['content'].'</div>
			<div id="info_sp">
				<p><b>Chất liệu:</b> '.$row_detail['chatlieu'].'</p>
				<p><b>Kích thước:</b> '.$row_detail['kichthuoc'].'</p>
				<p><b>Tiết diện:</b> '.$row_detail['tietdien'].'</p>
			</div>
			<div style="clear:both; height:1px"></div>
		</div>
	</div>
	<div id="backgroundPopup"></div>
	<script type="text/javascript">
	$(document).ready(function() {
		var height = $("#popupContact").height();
		$("#popupContact").height(height);
		centerPopup("fix");
		loadPopup();
		$(window).bind("resize", function(){ centerPopup("fix"); });
	});
	</script>
	';
?>
<div id="left" style="border:solid 1px #E8E8E8">
	<div id="list_product">
	<?php
    $qr = $tc->product_list($row_menu_one['id']);
    while($row = mysql_fetch_array($qr)){
        echo '
        <div class="item_product">
            <div class="img"><a href="'.$lang.'/'.$row_menu_one['url'].$row['name_rewrite'].'.html"><img src="'.url_product_thumb_image.$row['url_hinh'].'" alt="'.$row['name'].'" /></a></div>
            <a href="'.$lang.'/'.$row_menu_one['url'].$row['name_rewrite'].'.html" title="'.$row['name'].'"><h2>'.$row['name'].'</h2></a>
            <p>'.$row['description'].'</p>
        </div>
        ';
    }
    ?>
    </div>
</div>